home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
Aztec C v5.2a disk 4.adf
/
incl52.lzh
/
sgtty.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-22
|
2KB
|
43 lines
/* Copyright 1987 Manx Software Systems, Inc */
#ifndef __SGTTY_H
#define __SGTTY_H
#define TIOCGETP 0 /* get sgttyb structure */
#define TIOCSETP 1 /* set sgttyb structure; flush input/typeahead */
#define TIOCSETN 2 /* set sgttyb structure; don't flush input/typeahead */
#define TIOCNTLC 3 /* check for control C */
#define TIOCGETC 4 /* get tchars structure */
#define TIOCSETC 5 /* set tchars structure */
#define TIOCFLUSH 6 /* flush input/typeahead queues */
struct sgttyb {
short sg_flags; /* control flags */
char sg_erase; /* defaults to BACKSPACE */
char sg_kill; /* defaults to ^U */
};
/* settings for sg_flags */
#define TABSIZ 0x000f /* size of tab if XTABS is set */
#define XTABS 0x0010 /* convert tabs to spaces on output */
#define CRMOD 0x0020 /* CR -> LF on input, LF -> CR/LF on output */
#define ECHO 0x0040 /* echo input to output */
#define ECHOE 0x0080 /* follow erase character by space, BS */
#define CBREAK 0x0100 /* don't wait for the whole line */
#define NODELAY 0x0200 /* return even if no characters */
#define RAW 0x0400 /* no input or output mapping at all */
#define CHKKEY 0x0800 /* check for keyboard characters during output */
#define ERASE 0x1000 /* erase character space before drawing */
struct tchars {
char t_intrc; /* interrupt - ^C (not [yet] implemented) */
char t_quitc; /* quit - ^\ (not [yet] implemented) */
/* char t_startc; /* start output (not supported) */
/* char t_stop; /* stop output (not supported) */
char t_eofc; /* end-of-file - ^D */
/* char t_brck; /* input delimiter (like nl) (not supported) */
};
#endif